package com.weiqiao.mall.constant.e;

/**
 * @author ChenYF
 * @Description
 * @Date 2020/8/4 18:24
 */
public class OrderRemarkEnum {

    //商品操作日志的备注
    public enum OrderRemark {

        A(0, "进件"),
        B(1, "初审"),
        C(2, "核卡"),
        D(4, "激活"),
        E(8, "首刷"),
        F(16, "审核失败"),
        G(32, "无数据"),
        H(50, "审核中"),
        I(51, "未通过"),
        J(52, "已通过"),
        K(53, "未收到"),
        L(54, "已收到"),
        S(100, "作废");

        OrderRemark(int value, String name) {
            this.value = value;
            this.name = name;
        }

        private int value;
        private String name;

        public int getValue() {
            return this.value;
        }

        public String getName() {
            return name;
        }

        public static String getNameByValue(Integer value) {
            OrderRemarkEnum.OrderRemark[] status = OrderRemarkEnum.OrderRemark.values();
            for (OrderRemarkEnum.OrderRemark p : status) {
                if (null != value && p.value == value) {
                    return p.name;
                }
            }
            return null;
        }
    }
}
